using System.Linq;
using Comteck.Entities.Sys;

namespace Comteck.Ktt.Services.SeedData {
  /// <summary>
  /// 
  /// </summary>
  public class _20250401001 : IDataSeed {
    /// <summary>
    /// 
    /// </summary>
    /// <param name="context"></param>
    /// <returns></returns>
    public void Init(AppDbContext context) {
      // 菜单
      if (!context.MenuAuth.Any(x => x.Id == "4035")) {
        context.MenuAuth.Add(new MenuAuth() {
          Id = "4035",
          Parent_Id = "40",
          Name = "订单回收站",
          Show_Mode = 0,
          Status = 1,
          Form_Assembly_Name = "Comteck.Ktt.WinUI",
          Form_Path = "Comteck.Ktt.WinUI.Orders.FrmSaleOrderRecycleAdmin"
        });

        context.SaveChanges();
      }

    }
  }
}
